<template>
	<view class="join-act-details">
		<bs-navbar :title='activityTable.title'></bs-navbar>
		<view class="join-padding">
			<view class="title">
				{{activityTable.title}}
			</view>
			<u-image border-radius='12' :fade="true" duration="450" width="100%" height="394rpx" :src="activityTable.titleImg"></u-image>
			<view class="mt-70">
				<title :lineShow='true' title="热门活动" :showLine='true'></title>
				<bsTileContent title='会议主办方' :content='activityTable.hostunit'></bsTileContent>
				<bsTileContent title='活动举办地点' :content='activityTable.address'></bsTileContent>
				<bsTileContent title='活动举办时间' :content='activityTable.startTime'></bsTileContent>
				<bsTileContent title='活动联系人' :content='activityTable.linkman'></bsTileContent>
				<bsTileContent title='联系方式' :content='activityTable.phone'></bsTileContent>
			</view>
		</view>
		<bs-gap></bs-gap>
		<bsCodeImg  :imgUrl='activityTable.activityQrcode'></bsCodeImg>
	</view>
</template>

<script>
	import bsTileContent from '@/components/bs-title-content/bs-title-content.vue'
	import title from '@/components/bs-title/bs-title.vue'
	import bsCodeImg from '@/components/bs-code-img/bs-code-img.vue'
	export default {
		components: {
			bsTileContent,
			title,
			bsCodeImg
		},
		onLoad(e) {
			this.activityId = e.activityId
			this.init()
		},
		data() {
			return {
				activityId: '',
				activityTable:{}
			};
		},
		
		methods: {
			async init() {
				let res = await this.$u.api.getSetActivity({
					activityId: this.activityId
				})
				this.activityTable = res.activityTable
				console.log(res.activityTable, '活动详情')
			}
		}
	}
</script>

<style lang="scss" scoped>
	.join-act-details {
		.join-padding {
			padding: 0 30rpx;
			padding-top: 40rpx;

			.title {
				font-size: 40rpx;
				color: #303030;
				margin-bottom: 60rpx;
			}
		}
	}
</style>
